#include<stdio.h>
#include<string.h>

#define ROW 10
#define COL 50
char txt_name[ROW][COL] = {
  "1.txt",
  "123.txt",
  "ewew",
  "13.mp3",
  "12314.bmp",
  ".txt"
};
int main()
{
  for(int i = 0 ;i<ROW ;i++)
  {
    if(strstr(txt_name[i],".txt") != NULL)
    {
      if(strcmp(txt_name[i],".txt") != 0)
        printf("%s\n",txt_name[i]);
    }
  }
  printf("\n");
  return 0;
}
